module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8090',
        // ws: true,
        changeOrigin: true
      },
    },
  },
  pages: {
    manage: {
      entry: 'src/pages/manage/app.js',
      template: 'public/index.html',
      filename: 'manage/index.html'
    },
    index: {
      // page 的入口
      entry: 'src/pages/main/app.js',
      // 模板来源
      template: 'public/index.html',
      filename: 'index.html'
    },
  },
  css: {
    loaderOptions: {
      less: {
        javascriptEnabled: true,
        modifyVars: {
          'primary-color': '#1DA57A',
          'link-color': '#1DA57A',
          // 'border-radius-base': '2px',
          'font-size-base': '16px',
        },
      }
    }
  },
}
